package com.shop.item.api;

import com.shop.item.pojo.Brand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author : Created by HGL on 2019/03/21 01:03
 * @version : 1.0
 * Description :
 */
@RequestMapping("brand")
public interface BrandApi {
    /**
     * 根据id查询品牌
     * @param id
     * @return
     */
    @GetMapping("/{id}")
    Brand queryBrandById(@PathVariable("id")Long id);

    @GetMapping("/list")
    List<Brand> queryBrandByIds(@RequestParam("ids") List<Long> ids);
}
